package com.xbongbong.saas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

import java.util.Objects;

/**
 * 执行人复选框选项
 *
 * @author feng.zheng
 * @version v1.0
 * @date 2019/1/28 16:33
 * @since v1.0
 */
@Getter
public enum ExecutorCheckBoxEnum {
    /**
     * 执行人复选框选项
     * 0：负责人
     * 1：协同人
     * 2：自定义
     */
    MAIN_USER_CHECK(0, "enum.executorCheckBox.alias.main_user_check"),
    COOPER_USER_CHECK(1, "enum.executorCheckBox.alias.cooper_user_check"),
    CUSTOM_CHECK(2, "enum.executorCheckBox.alias.custom_check"),;
    private Integer code;

    private String alias;

    ExecutorCheckBoxEnum(Integer code, String alias) {
        this.code = code;
        this.alias = alias;
    }

    public String getAlias() {
        return I18nMessageUtil.getMessage(alias);
    }
}
